package com.mes.biz.service.impl;

import java.util.List;
import org.springframework.stereotype.Service;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import com.github.pagehelper.PageInfo;
import com.mes.common.core.domain.BaseEntity;
import com.mes.common.core.service.BaseServiceImpl;
import com.mes.biz.mapper.BizOrderAttachMapper;
import com.mes.biz.domain.BizOrderAttach;
import com.mes.biz.service.BizOrderAttachService;
import org.springframework.transaction.annotation.Transactional;

import javax.annotation.Resource;

/**
 * 销售单附件Service业务层处理
 * @author hwg
 * @email hwg
 * @date 2023-05-15
 */
@Service
public class BizOrderAttachServiceImpl extends BaseServiceImpl<BizOrderAttachMapper, BizOrderAttach> implements BizOrderAttachService {

    @Resource
    private BizOrderAttachMapper bizOrderAttachMapper;

    @Override
    public List<BizOrderAttach> getBizOrderAttachByOrderId(String orderId) {
        return bizOrderAttachMapper.getBizOrderAttachByOrderId(orderId);
    }

    @Override
    public List<BizOrderAttach> getAttachByOrderIdWithType(String orderId, Integer type) {
        return bizOrderAttachMapper.getAttachByOrderIdWithType(orderId,type);
    }

    @Override
    public int deleteBizOrderAttachByIds(String[] ids, String delFlag) {
        return bizOrderAttachMapper.deleteBizOrderAttachByIds(ids,delFlag);
    }
}
